<a href="/" class="{{class}}">
  <span class="hidden md:block">
    {% if settings.pc_logo_pic.src != '' %}
      <img
        data-src="{{ settings.pc_logo_pic.src }}"
        style="width:{{settings.pc_logo_w | default:60}}px;"
        src="{{settings.pc_logo_pic.src}}"
        alt="{{ settings.pc_logo_pic.alt}}"
      >
    {% else %}
      {{ storeConfig.name }}
    {% endif %}
  </span>
  <span class="block md:hidden">
    {% assign wapLogo = settings.wap_logo_pic.src | default: settings.pc_logo_pic.src %}
    {% if wapLogo != '' %}
      <img
        data-src="{{ wapLogo }}"
        class="logo-wap-img"
        style="width:{{settings.wap_logo_w | default:60}}px"
        src="{{wapLogo}}"
        alt="{{ settings.wap_logo_pic.alt}}"
      >
    {% else %}
      {{ storeConfig.name }}
    {% endif %}
  </span>
</a>
